package com.ibeeking.found.cop.service.common.vo;


import com.fasterxml.jackson.annotation.JsonFormat;

import com.ibeeking.found.cop.service.common.bo.CopSensitiveMatchWordBO;
import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;


/**
 * @ClassName  CopSensitiveWordVO
 * @Description 敏感词管理
 * @Author ibeeking
 * @Date 2021-01-15 10:44
 **/
@Data
public class CopSensitiveWordVO implements Serializable {
    private static final long serialVersionUID = -1L;

    /**
     * id
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;
    /**
     * 来自企微的ruleId
     */
    private String ruleId;
    /**
     * 敏感词
     */
    private String name;

    /**
     * 匹配词列表
     */
    private String wordList;
    private String wordListStr;
    /**
     * 匹配词列表
     */
    List<CopSensitiveMatchWordBO> matchWords = new ArrayList<>();
    /**
     * 额外的规则
     */
    private String extraRule;

    /**
     * 额外的拦截语义规则，1：手机号、2：邮箱地:、3：红包
     */
    private String semanticsList;

    /**
     * 拦截方式，1:警告并拦截发送；2:仅发警告
     */
    private Integer interceptType;

    /**
     * 敏感词适用范围
     */
    private String applicableRange;
    /**
     * 同步到企微状态：0=未同步；1=已同步
     */
    private Integer syncStatus;
    private String syncStatusDesc;
    /**
     * 发布状态；0=禁用；1=启用
     */
    private Integer status;
    private String statusDesc;
    /**
     * 创建时间
     */
    private String buildTime;

    private String createTime;

    private Long createBy;

    private String modifyTime;

    private Long modifyBy;
}
